<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <div>这是父组件的测试文本</div>
        <child1></child1>
    </div>
    <script src="./js/vue.js"></script>
    <script>
        Vue.component('child1', {
            template: '<div class="child1">这是child1组建的内容</div>'
        })
        var app = new Vue({
            el: '#app',
            data: {

            },
            methods: {

            }
        })
       
    </script>
</body>

</html>